Meaning of the word "what is got over the devil's back is spent under his belly" in English

What does "what is got over the devil's back is spent under his belly" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

what is got over the devil's back is spent under his belly

US /wʌt ɪz ɡɑːt ˈoʊvər ðə ˈdɛvəlz bæk ɪz spɛnt ˈʌndər hɪz ˈbɛli/
UK /wɒt ɪz ɡɒt ˈəʊvə ðə ˈdɛvəlz bæk ɪz spɛnt ˈʌndə hɪz ˈbɛli/
"what is got over the devil's back is spent under his belly" picture

Idiom

money or wealth acquired dishonestly or through ill-gotten means is often wasted or lost quickly on frivolous things

Example:
He won a fortune through fraud but lost it all in a week; what is got over the devil's back is spent under his belly.
I wouldn't envy his stolen riches; what is got over the devil's back is spent under his belly.